#include <iostream>
#include <cstring>
using namespace std;

/*
	继承之后，构造析构的调用规则
*/
class Animal
{
public:
	Animal()
	{
		cout<<"父类Animal无参构造了"<<endl;
	}
	Animal(int m)
	{
		cout<<"父类Animal带int类型参数构造了"<<endl;
	}
};
class Cat:public Animal
{
public:
	Cat()
	{
		cout<<"子类Cat无参构造了"<<endl;
	}
	Cat(int n)
	{
		cout<<"子类Cat带int参数构造了"<<endl;
	}
	Cat(int n,string name)
	{
		cout<<"子类Cat带int和string参数构造了"<<endl;
	}
};

int main(int argc,char **argv)
{
	Cat c1;
	Cat c2(666);
	Cat c3(888,"旺财");
	return 0;	
}